﻿using MediatR;

namespace EMall.Events
{
    public abstract class EventHandler : IEventHandler
    {
        protected EventHandler()
        {
        }
    }
    public abstract class EventHandler<TEvent> : EventHandler, IEventHandler<TEvent>, INotificationHandler<TEvent> where TEvent : class, IEvent, INotification
    {
        public abstract Task Handle(TEvent notification, CancellationToken cancellationToken);
    }
}